home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / ShutDown.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  1.3 KB  |  54 lines  |  [TEXT/MPS ]

  1. ;    File:        ShutDown.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGSHUTDOWN__') = 'UNDEFINED' THEN
  12. __INCLUDINGSHUTDOWN__    SET    1
  13.  
  14. ; Masks for ShutDwnInstall procedure
  15.  
  16. sdOnPowerOff      EQU         1                         ; call procedure before power off
  17. sdOnRestart       EQU         2                         ; call procedure before restart
  18. sdOnUnmount       EQU         4                         ; call procedure before unmounting
  19. sdOnDrivers       EQU         8                         ; call procedure before closing drivers
  20. sdRestartOrPower  EQU         3                         ; call before either power off or restart
  21.  
  22. ; ShutDown Selectors:
  23.  
  24. sdPowerOff        EQU         1
  25. sdRestart         EQU         2
  26. sdInstall         EQU         3
  27. sdRemove          EQU         4
  28.  
  29.  
  30.                   MACRO
  31.                   _SDPowerOff
  32.                   MOVE.W      #sdPowerOff,-(SP)
  33.                   DC.W        $A895                     ; _ShutDown
  34.                   ENDM
  35.  
  36.                   MACRO
  37.                   _SDRestart
  38.                   MOVE.W      #sdRestart,-(SP)
  39.                   DC.W        $A895                     ; _ShutDown
  40.                   ENDM
  41.  
  42.                   MACRO
  43.                   _SDInstall
  44.                   MOVE.W      #sdInstall,-(SP)
  45.                   DC.W        $A895                     ; _ShutDown
  46.                   ENDM
  47.  
  48.                   MACRO
  49.                   _SDRemove
  50.                   MOVE.W      #sdRemove,-(SP)
  51.                   DC.W        $A895                     ; _ShutDown
  52.                   ENDM
  53.  
  54.     ENDIF    ; ...already included